package app.web.controller;

import java.util.Date;

import javax.servlet.http.HttpServletRequest;

import keter.framework.web.util.MediaType;
import keter.web.controller.base.KeterBaseController;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import app.model.Demo;

import com.google.common.base.Strings;


/**
 * <p>Class       : app.controller.IndexLoginController
 * <p>Descdription: 首页和登录控制逻辑的统一处理
 *
 * @author  gulixing@msn.com
 * @version 1.0.0
 */
@RestController
@RequestMapping("app")//注意："path"和"path/"是两个不同的映射
public class AppIndexController extends KeterBaseController {
    /**
     * Logger for this class
     */
    private static final Logger logger = LoggerFactory.getLogger(AppIndexController.class);
    
    @RequestMapping(value=Routes.Index, method = RequestMethod.GET)
    public ModelAndView index() throws Exception {        
        return new ModelAndView("app/app");
    }
   
}
